package com.baidu.www1;//声明当前类在哪个包底下

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

//输入3科成绩，然后把三科成绩输出，成绩为整数形式。
public class Test {
    //依次输入一个学生的学号，以及3科（C语言，数学，英语）成绩，
    // 在屏幕上输出该学生的学号，3科成绩（注：输出成绩时需进行四舍五入且保留2位小数）。
        public static void main3(String[] args) {
            Scanner s = new Scanner(System.in);
            String[] a = s.nextLine().split("[;,]");//split表示输入的字符以;,分割成String数组
            int id = Integer.parseInt(a[0]);
            double s1 = Double.parseDouble(a[1]);
            double s2 = Double.parseDouble(a[2]);
            double s3 = Double.parseDouble(a[3]);
            System.out.print("The each subject score of  No. " + id + " is " + String.format("%.2f", s1) + ", " + String.format("%.2f", s2) + ", " + String.format("%.2f", s3) + ".");
        }

    public static void main2(String[] args) {
        Scanner p=new Scanner(System.in);
        String Xue=p.next();
        double x1=p.nextInt();
        double x2=p.nextInt();
        double x3=p.nextInt();
        System.out.printf("The each subject score of No. %s is %.2f, %.2f, %.2f.",Xue,x1,x2,x3);
    }
    public static void main1(String[] args) {
        Scanner p=new Scanner(System.in);
        int x1=p.nextInt();
        int x2=p.nextInt();
        int x3=p.nextInt();
        System.out.println("score1="+x1+","+"score2="+x2+","+"score3="+90);
    }
}
